#include <iostream>
using namespace std;
int main()
{
    char a[100];
    double b,c,s=0;
    while (cin>>a>>b>>c)
    {
        s=s+b*c;
    }
    printf("%.1lf\n",s);
    return 0;
}
